/* 打包时间：2025-11-29 21:10:27 */
(function(){
  try{
    var bridge = null;
    try{ bridge = runtime && runtime.accessibilityBridge; }catch(e){}
    if(!bridge){
      try{
        var m = runtime.getClass().getDeclaredMethod("getAccessibilityBridge");
        m.setAccessible(true);
        bridge = m.invoke(runtime);
      }catch(e){}
    }
    if(!bridge){ return; }
    try{
      var WF = Packages.com.stardust.autojs.core.accessibility.AccessibilityBridge$WindowFilter;
      bridge.setWindowFilter(new JavaAdapter(WF,{ filter:function(info){ return true; } }));
    }catch(e){}
  }catch(e){}
})();
(function (_0x15cb9a) {
    var _0x98bd89 = {};
    function _0x13eff3(_0x36c491) {
        if (_0x98bd89[_0x36c491])
            return _0x98bd89[_0x36c491]['exports'];
        var _0x357e4f = _0x98bd89[_0x36c491] = {
            'i': _0x36c491,
            'l': ![],
            'exports': {}
        };
        return _0x15cb9a[_0x36c491]['call'](_0x357e4f['exports'], _0x357e4f, _0x357e4f['exports'], _0x13eff3), _0x357e4f['l'] = !![], _0x357e4f['exports'];
    }
    return _0x13eff3['m'] = _0x15cb9a, _0x13eff3['c'] = _0x98bd89, _0x13eff3['d'] = function (_0x11d600, _0x5272a7, _0x3953e1) {
        !_0x13eff3['o'](_0x11d600, _0x5272a7) && Object['defineProperty'](_0x11d600, _0x5272a7, {
            'enumerable': !![],
            'get': _0x3953e1
        });
    }, _0x13eff3['r'] = function (_0x5c45d8) {
        typeof Symbol !== 'undefined' && Symbol['toStringTag'] && Object['defineProperty'](_0x5c45d8, Symbol['toStringTag'], { 'value': 'Module' }), Object['defineProperty'](_0x5c45d8, '__esModule', { 'value': !![] });
    }, _0x13eff3['t'] = function (_0x12a64c, _0x416959) {
        if (_0x416959 & 0x1)
            _0x12a64c = _0x13eff3(_0x12a64c);
        if (_0x416959 & 0x8)
            return _0x12a64c;
        if (_0x416959 & 0x4 && typeof _0x12a64c === 'object' && _0x12a64c && _0x12a64c['__esModule'])
            return _0x12a64c;
        var _0x181a61 = Object['create'](null);
        _0x13eff3['r'](_0x181a61), Object['defineProperty'](_0x181a61, 'default', {
            'enumerable': !![],
            'value': _0x12a64c
        });
        if (_0x416959 & 0x2 && typeof _0x12a64c != 'string') {
            for (var _0x420770 in _0x12a64c)
                _0x13eff3['d'](_0x181a61, _0x420770, function (_0x4a881a) {
                    return _0x12a64c[_0x4a881a];
                }['bind'](null, _0x420770));
        }
        return _0x181a61;
    }, _0x13eff3['n'] = function (_0x3d003e) {
        var _0xb467a7 = _0x3d003e && _0x3d003e['__esModule'] ? function _0x15c2d6() {
            return _0x3d003e['default'];
        } : function _0x4ce6b9() {
            return _0x3d003e;
        };
        return _0x13eff3['d'](_0xb467a7, 'a', _0xb467a7), _0xb467a7;
    }, _0x13eff3['o'] = function (_0x38f574, _0x4b1811) {
        return Object['prototype']['hasOwnProperty']['call'](_0x38f574, _0x4b1811);
    }, _0x13eff3['p'] = '', _0x13eff3(_0x13eff3['s'] = 0x8);
}([
    function (_0x2e450b, _0x17c052) {
        _0x2e450b['exports'] = require('./lib.js');
    },
    function (_0x2de834, _0x443758) {
        _0x2de834['exports'] = require('./consolefile.js');
    },
    function (_0x209f57, _0x26c98f) {
        _0x209f57['exports'] = require('./info.js');
    },
    function (_0x27353c, _0x29e9e2) {
        _0x27353c['exports'] = require('./datastore.js');
    },
    function (_0xc5d73d, _0x547f36) {
        _0xc5d73d['exports'] = require('./engine.js');
    },
    function (_0x38a64b, _0x5c4989) {
        _0x38a64b['exports'] = require('./aaa.js');
    },
    ,
    ,
    function (_0x24a0e9, _0x488f51, _0x15ea44) {
        var _0x38b44a = files['cwd']() + '/';
        const _0x322c30 = files['path'](_0x38b44a + 'ui.js'), _0x3152a3 = files['path'](_0x38b44a + 'script.js');
        let _0x715ee6;
        const _0x5f5cb0 = _0x15ea44(0x2), _0x2efb31 = _0x15ea44(0x3), _0x59e7de = _0x15ea44(0x4);
        var _0x5cf2c4 = 0x0, _0x4e45b6, _0x2ff808 = ![];
        console['clear'](), importClass(android['provider']['Settings']), importClass(android['net']['Uri']), floaty['checkPermission'] = function () {
            return Settings['canDrawOverlays'](context['getApplicationContext']());
        }, floaty['requestPermission'] = function () {
            app['startActivity']({
                'action': Settings['ACTION_MANAGE_OVERLAY_PERMISSION'],
                'data': Uri['parse']('package:' + context['getPackageName']())
            });
        };
        var _0x454efb = function (_0x269150, _0x20b4b5) {
            if (!_0x269150 || !_0x20b4b5)
                throw '缺参数';
            this['x'] = 0x0, this['y'] = 0x0, this['windowX'] = 0x0, this['windowY'] = 0x0, this['downTime'] = 0xdac, this['Timeout'] = 0x0, this['Click'] = function () {
            }, this['LongClick'] = function () {
            }, this['setClick'] = function (_0x530933) {
                typeof _0x530933 == 'function' && (this['Click'] = _0x530933);
            }, this['setLongClick'] = function (_0x2272c4, _0x13a898) {
                typeof _0x2272c4 == 'function' && (this['LongClick'] = _0x2272c4, parseInt(_0x13a898) <= 0x3e8 && (this['downTime'] = parseInt(_0x13a898)));
            }, _0x20b4b5['setOnTouchListener'](new android['view']['View']['OnTouchListener']((_0x5ea8aa, _0x22cb0c) => {
                switch (_0x22cb0c['getAction']()) {
                case _0x22cb0c['ACTION_DOWN']:
                    this['x'] = _0x22cb0c['getRawX'](), this['y'] = _0x22cb0c['getRawY'](), this['windowX'] = _0x269150['getX'](), this['windowY'] = _0x269150['getY'](), this['Timeout'] = setTimeout(() => {
                        this['LongClick'](), this['Timeout'] = 0x0;
                    }, this['downTime']);
                    return !![];
                case _0x22cb0c['ACTION_MOVE']:
                    Math['abs'](_0x22cb0c['getRawY']() - this['y']) > 0x5 && Math['abs'](_0x22cb0c['getRawX']() - this['x']) > 0x5 && (this['Timeout'] && (clearTimeout(this['Timeout']), this['Timeout'] = 0x0), _0x269150['setPosition'](this['windowX'] + (_0x22cb0c['getRawX']() - this['x']), this['windowY'] + (_0x22cb0c['getRawY']() - this['y'])));
                    return !![];
                case _0x22cb0c['ACTION_UP']:
                    this['Timeout'] && (clearTimeout(this['Timeout']), this['Timeout'] = 0x0, this['Click']());
                    return !![];
                }
                return !![];
            }));
        };
        function _0x20cb93() {
            const _0x3a4c22 = _0x2efb31['get']('ScriptFrom', 'ui');
            let _0x152007 = String(engines['myEngine']()['source']), _0x33fe62 = String(engines['myEngine']()['cwd']()), _0x4febe1 = _0x152007, _0x2e6bdb = '[remote]';
            _0x152007['indexOf'](_0x2e6bdb) > -0x1 && (_0x152007 = _0x152007['replace'](_0x2e6bdb, ''), _0x4febe1 = _0x33fe62 + '/' + _0x38b44a + _0x152007);
            _0x152007['indexOf']('/') == -0x1 && (_0x4febe1 = _0x33fe62 + '/' + _0x152007);
            _0x2efb31['put']('FloatyScriptPath', _0x4febe1), console['info']('[floaty|L129|Cinit()]', 'path', _0x4febe1), console['info']('[floaty|L130|Cinit()]', 'source', _0x152007), console['info']('[floaty|L131|Cinit()]', 'cwd', _0x33fe62);
            _0x3a4c22 === 'ui' ? _0x59e7de['stopOtherEngine']() : _0x2efb31['put']('ScriptFrom', 'ui');
            let _0x17a92e = _0x2efb31['get']('START_TIME_LIST', []);
            _0x17a92e['push'](String(_0x3a4c22 + '_' + new Date()));
            _0x17a92e['length'] > 0xa && _0x17a92e['shift']();
            _0x2efb31['put']('START_TIME_LIST', _0x17a92e);
            let {initLogFile: _0x360724} = _0x15ea44(0x1);
            _0x2efb31['put']('InitLogFileTimetamp', Math['floor'](new Date()['getTime']() / 0x3e8)), _0x360724(), threads['shutDownAll'](), events['removeAllTouchListeners']();
            let _0x4a334d = floaty['checkPermission']();
            if (!_0x4a334d) {
                floaty['requestPermission'](), toastLog('请务必授予当前软件悬浮窗权限,否则无法运行~');
                return;
            }
            var _0x2be73d = function (_0x39b2bc) {
                !_0x39b2bc && (_0x39b2bc = {
                    'delay': 0x0,
                    'loopTimes': 0x1,
                    'interval': 0x0
                });
                _0x2ff808 = ![], _0x2efb31['put']('IS_FROM_MAIN', 0x1), _0x2efb31['put']('ScriptConfig_Interval', _0x39b2bc['interval']);
                try {
                    _0x59e7de['stopOtherEngine'](), _0x2ff808 = !![], console['log']('[floaty|L178|Cinit()\x20->\x20exec]', '[\x20Is_wait_to_run\x20]\x20>', _0x2ff808), engines['execScriptFile'](_0x3152a3, _0x39b2bc), console['log']('[floaty|L180|Cinit()\x20->\x20exec]', '[\x20Is_wait_to_run\x20]\x20>', _0x2ff808);
                } catch (_0x4a52c0) {
                    console['error']('[floaty|L182|Cinit()\x20->\x20exec]', 'engines.execScriptFile(ScriptFilePath,\x20args);', _0x4a52c0), _0x2ff808 = ![];
                }
            };
            events['on']('updatelog', function () {
                let _0x2b9d42 = _0x2efb31['get']('InitLogFileTimetamp', Math['floor'](new Date()['getTime']() / 0x3e8)), _0x5a8462 = Math['floor'](new Date()['getTime']() / 0x3e8);
                if (_0x5a8462 - _0x2b9d42 > 0xe10) {
                    try {
                        _0x2efb31['put']('InitLogFileTimetamp', _0x5a8462);
                        let {initLogFile: _0x151d6b} = _0x15ea44(0x1);
                        _0x151d6b();
                    } catch (_0x29ace1) {
                        console['error']('[floaty|L196|Cinit()]', 'initLogFile', _0x29ace1);
                    }
                    console['info']('[floaty|L198|Cinit()]', '重开日志记录!!!');
                } else
                    console['info']('[floaty|L200|Cinit()]', '日志记录中...');
            }), events['on']('core.main()', function () {
                if (_0x2ff808) {
                    toast('脚本仍在循环运行中~'), console['log']('[floaty|L207|Cinit()]', '脚本仍在循环运行中~');
                    return;
                }
                _0x59e7de['stopOtherEngine']();
                let _0x3ab77d = _0x2efb31['get']('Is_Super');
                if (_0x3ab77d) {
                    let _0x2c014f = _0x2efb31['get']('superData'), _0x4b77ee = _0x2c014f['item_id_str_selected']['split'](',');
                    _0x2efb31['put']('SelectTypeList', _0x4b77ee);
                    let _0x283ee3 = _0x2c014f['circle_num'] * 0x1 - 0x1;
                    _0x2efb31['put']('circle_num', _0x283ee3);
                    let _0x203e18 = new Date()['getTime']();
                    _0x2efb31['put']('timetamp_start', _0x203e18), _0x2efb31['put']('internal_sec', _0x2c014f['internal_min'] * 0x3c);
                }
                const _0xaa0a52 = _0x15ea44(0x0);
                _0xaa0a52['InterruptConfirm']()['then'](() => {
                    _0x2be73d();
                })['catch'](_0x406f8c => {
                    console['error']('[floaty|L253|Cinit()]', '频繁检测,\x20暂不启动', _0x406f8c), toast('频繁检测暂不启动');
                });
            });
            let _0x35a8bb = null;
            try {
                _0x35a8bb = floaty['rawWindow'](_0x15ea44(0x9));
            } catch (_0x166083) {
                console['error']('[floaty|L290|Cinit()]', 'floaty.rawWindow(require(\x22./layout/floaty.js\x22));', _0x166083);
                throw _0x166083;
            }
            const _0x5b7a93 = _0x35a8bb;
            _0x5b7a93['setPosition'](0x0, Math['round'](device['height'] / 0x3)), _0x4e45b6 = new _0x454efb(_0x5b7a93, _0x5b7a93['action']), _0x4e45b6['setLongClick'](function () {
                toastLog('【标志】长按退出脚本'), engines['stopAllAndToast']();
            }), _0x4e45b6['setClick'](function () {
                if (!_0x5cf2c4) {
                    _0x5cf2c4 = 0x1;
                    var _0x4c9518 = [
                        '运行!!!',
                        '中断',
                        '返回界面',
                        '查看日志',
                        '打开设置',
                        '开启无障碍',
                        '在线更新',
                        '检查更新',
                        '卡顿反馈',
                        '关闭弹窗',
                        '退出啦'
                    ];
                    _0x4c9518['unshift']('片段测试');
                    var _0xd57744 = null;
                    dialogs['select']('选择功能——', _0x4c9518)['then'](_0x54514c => {
                        _0x5cf2c4 = 0x0;
                        if (_0x54514c > -0x1) {
                            var _0x1de16d = '【标志】';
                            toast('你选择的功能是' + _0x4c9518[_0x54514c]);
                            switch (_0x4c9518[_0x54514c]) {
                            case '开启无障碍':
                                threads['start'](function () {
                                    const {auto_new: _0x48458b} = _0x15ea44(0x0);
                                    _0x48458b(), threads['shutDownAll']();
                                }), console['log']('[floaty|L334|Cinit()]', _0x1de16d + '开启无障碍服务');
                                break;
                            case '运行!!!':
                                _0x2ff808 = ![];
                                try {
                                    var _0x8f3357, _0xbe71eb, _0x12cf32;
                                    (_0x8f3357 = engines) === null || _0x8f3357 === void 0x0 || (_0xbe71eb = _0x8f3357['myEngine']) === null || _0xbe71eb === void 0x0 || (_0xbe71eb = _0xbe71eb['call'](_0x8f3357)) === null || _0xbe71eb === void 0x0 || (_0x12cf32 = _0xbe71eb['emit']) === null || _0x12cf32 === void 0x0 || _0x12cf32['call'](_0xbe71eb, 'core.main()', '启动脚本');
                                } catch (_0xe8716a) {
                                    console['error']('[floaty|L341|Cinit()]', 'engines?.myEngine?.()?.emit?.(\x22core.main()\x22,\x20\x22启动脚本\x22);', _0xe8716a);
                                }
                                break;
                            case '中断':
                                _0x2ff808 = ![], _0x59e7de['stopOtherEngine'](), _0x2efb31['put']('IsSuper', ![]), toastLog(_0x1de16d + '强制中断脚本运行');
                                break;
                            case '返回界面':
                                toastLog(_0x1de16d + '返回界面'), _0x2ff808 = ![];
                                try {
                                    _0x59e7de['stopOtherEngine'](), engines['execScriptFile'](_0x322c30);
                                } catch (_0x1271b) {
                                    console['error']('[floaty|L357|Cinit()]', 'engines.execScriptFile(UiFilePath);', _0x1271b);
                                    throw _0x1271b;
                                }
                                break;
                            case '查看日志':
                                app['startActivity']('console'), console['log']('[floaty|L363|Cinit()]', _0x1de16d + '打开日志');
                                break;
                            case '打开设置':
                                app['startActivity']('settings'), console['log']('[floaty|L367|Cinit()]', _0x1de16d + '打开设置');
                                break;
                            case '退出啦':
                                console['log']('[floaty|L370|Cinit()]', _0x1de16d + '退出软件'), _0x59e7de['stopOtherEngine']();
                                try {
                                    _0x5b7a93['exitOnClose']();
                                } catch (_0x5e1b61) {
                                    console['warn']('[floaty|L376|Cinit()]', '退出失败', _0x5e1b61);
                                }
                                try {
                                    exit(), engines['stopAllAndToast']();
                                } catch (_0x44170b) {
                                    console['warn']('[floaty|L382|Cinit()]', '退出失败', _0x44170b);
                                }
                                return 0x0;
                            case '在线更新':
                                _0x381db1();
                                break;
                            case '启动记录':
                                app['startActivity']('console'), console['log']('[floaty|L390|Cinit()]', '最近10次启动记录如下:\x0a' + _0x2efb31['get']('START_TIME_LIST')['join']('\x0a'));
                                break;
                            case '片段测试':
                                threads['start'](function () {
                                    _0xd57744 = _0xd57744 || _0x15ea44(0x5), _0xd57744['main'](), threads['shutDownAll']();
                                });
                                break;
                            case '检查更新':
                                threads['start'](function () {
                                    _0xd57744 = _0xd57744 || _0x15ea44(0x5), _0xd57744['testVersion'](_0x5f5cb0['getProjectValue']('updateFolder')), threads['shutDownAll']();
                                });
                                break;
                            case '卡顿反馈':
                                threads['start'](function () {
                                    _0xd57744 = _0xd57744 || _0x15ea44(0x5), _0xd57744['screenCopy'](), threads['shutDownAll']();
                                });
                                break;
                            case '关闭弹窗':
                            default:
                                console['log']('[floaty|L415|Cinit()]', _0x1de16d + '取消选择');
                                break;
                            }
                        } else
                            console['log']('[floaty|L419|Cinit()]', '没有选择');
                    });
                }
            });
            _0x3a4c22 === 'ui' && engines['execScriptFile'](_0x322c30);
            function _0x229865(_0x47741c) {
                return typeof _0x47741c === 'undefined' && (_0x47741c = 0x7d0), _0x715ee6 && clearInterval(_0x715ee6), _0x715ee6 = setInterval(function () {
                }, _0x47741c), events['on']('exit', _0x21a872), _0x715ee6;
            }
            function _0x21a872() {
                _0x715ee6 && (clearInterval(_0x715ee6), _0x715ee6 = null);
            }
            _0x229865();
        }
        function _0x36dcf2() {
            _0x2efb31['put']('isFirstTime', 0x1), toastLog('所有模块已在线更新完毕~');
            const _0x3f713a = _0x15ea44(0x0);
            _0x3f713a['confirmAsync']('所有模块已在线更新完毕~,\x20请确认后,\x20重启软件~')['finally'](() => {
                engines['stopAllAndToast']();
            });
        }
        function _0x381db1() {
            threads['start'](function () {
                try {
                    let _0x3970ca = _0x5f5cb0['getProjectValue']('updateFolder'), _0xc52e4c = _0x5f5cb0['getProjectValue']('versions'), [_0x380cb0] = _0xc52e4c || [];
                    toastLog('当前更新版本适配微信' + _0x380cb0), sleep(0xbb8);
                    let _0x1946cf = 'https://gitee.com/xiaogf/trumpnb/raw/master/trumpnb/' + _0x3970ca + '/' + _0x380cb0 + '/';
                    const {
                        downloadFileJson: _0x10fc19,
                        downloadFiles: _0x1aeb7d
                    } = _0x15ea44(0xa);
                    let _0x49fae6 = _0x38b44a;
                    const _0x28ec67 = _0x49fae6 + 'res/data.json', _0x53dc62 = _0x1946cf + 'res/data.json';
                    _0x10fc19(_0x53dc62, _0x28ec67)['then'](_0x24931e => {
                        let _0x49fe53 = _0x24931e && _0x24931e['module_list'] ? _0x24931e['module_list'] : [];
                        return _0x1aeb7d({
                            'url_prefix': _0x1946cf,
                            'path_prefix': _0x49fae6,
                            'module_list': _0x49fe53
                        });
                    })['catch'](_0x1b5c35 => {
                        return console['log']('[floaty|L508|CupdateModules()]', _0x1b5c35), toast(_0x1b5c35), _0x1aeb7d({
                            'url_prefix': _0x1946cf,
                            'path_prefix': _0x49fae6
                        });
                    })['finally'](() => {
                        _0x36dcf2();
                    });
                } catch (_0x16b791) {
                    console['error']('[floaty|L515|CupdateModules()]', _0x16b791);
                }
            });
        }
        _0x20cb93();
    },
    function (_0x6e7f14, _0x2eb188) {
        _0x6e7f14['exports'] = require('./layout/floaty.js');
    },
    function (_0x2ab1e0, _0x30144f) {
        _0x2ab1e0['exports'] = require('./download.js');
    }
]));